package com.duoduo.admin.api.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import com.duoduo.admin.api.dto.SysLogDTO;
import com.duoduo.admin.api.feign.fallback.RemoteLogFeginClientFallbackFactory;
import com.duoduo.common.core.constant.SecurityConstants;
import com.duoduo.common.core.constant.ServiceNameConstants;
import com.duoduo.common.core.util.R;


@FeignClient(contextId = "remoteLogFeginClient",name =ServiceNameConstants.ADMIN_SERVICE, path = ServiceNameConstants.ADMIN_SERVICE+"/remote/log", fallbackFactory = RemoteLogFeginClientFallbackFactory.class)
public interface RemoteLogFeginClient {

	@PostMapping(value = "save",headers = SecurityConstants.HEADER_FROM_IN)
	R<Void> saveLog(SysLogDTO sysLog);

}
